<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
        <title>订单 - {{ user }}</title>
    </head>
    <body>        
        <h1>历史订餐记录</h1>
        <ul id="order">
            {% for order in order_list %}
            <li>{{order.dt|date:"Y-m-d  H:i:s"}} {{ order.course.resta.name }}
            <a href="{% url set_order order.course.id %}">{{ order.course.name }}</a>
            {{ order.course.price }}元
            <a href="{% url del_order order.id %}">删除</a>
            </li>
            {% endfor %}
        </ul>
        
        {% include 'message.html' %}
    </body>
    
</html>